<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model common\models\UserMess */
/* @var $form yii\widgets\ActiveForm */
?>
<?php
$this->title = '我的资料';
?>
<div class="user-mess-form" style="background-color: #fff;border-radius: 10px;<?php if(!isMobile()){ echo "padding:20px 60px";} else echo  "padding:20px 10px";?>">

    <?php $form = ActiveForm::begin(); ?>
    <div class="hidden">
        <?= $form->field($model, 'uid')->textInput(['maxlength' => true]) ?>

        <?= $form->field($model, 'role')->textInput() ?>
    </div>
    <div class="row text-center" >
        <h2>您的职务是什么？</h2>
        <h5>我们将推送最适合您的干货信息</h5>
    </div>
    <div class="row" style="margin-top: 30px">
        <div class="col-md-6 col-xs-6"><?= $form->field($model, 'position')->textInput(['maxlength' => true]) ?></div>
        <div class="col-md-6 col-xs-6"><?= $form->field($model, 'email')->textInput(['maxlength' => true]) ?></div>
    </div>

    <div class="hidden">
        <?= $form->field($model, 'username')->textInput(['maxlength' => true]) ?>

        <?= $form->field($model, 'pic')->textInput(['maxlength' => true]) ?>

        <?= $form->field($model, 'sex')->textInput(['maxlength' => true]) ?>

        <?= $form->field($model, 'age')->textInput() ?>

        <?= $form->field($model, 'wechat')->textInput(['maxlength' => true]) ?>

        <?= $form->field($model, 'address')->textInput(['maxlength' => true]) ?>

        <?= $form->field($model, 'experience')->textInput(['maxlength' => true]) ?>

        <?= $form->field($model, 'education')->textInput(['maxlength' => true]) ?>

        <?= $form->field($model, 'weight')->textInput() ?>

        <?= $form->field($model, 'create_at')->textInput(['maxlength' => true]) ?>

        <?= $form->field($model, 'updated_at')->textInput(['maxlength' => true]) ?>

        <?= $form->field($model, 'res1')->textInput(['maxlength' => true]) ?>

        <?= $form->field($model, 'res2')->textInput(['maxlength' => true]) ?>

        <?= $form->field($model, 'res3')->textInput(['maxlength' => true]) ?>
    </div>
    <div class="form-group text-right">
        <?= Html::submitButton($model->isNewRecord ? '创建' : '保存', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary','name'=>'sub_a']) ?>
    </div>

    <?php ActiveForm::end();  ?>
    <div class="row text-center" >
        <h5>他们是这样介绍自己的</h5>
    </div>
</div>
